Skip to main content

OrmLiteAuthRepositoryBase<TUserAuth, TUserAuthDetails>

Assembly: ServiceStack.Server.dll
View Source
Declaration
public abstract class OrmLiteAuthRepositoryBase<TUserAuth, TUserAuthDetails> : object, IUserAuthRepository, IAuthRepository, IRequiresSchema, IClearable, IManageRoles, IManageApiKeys, ICustomUserAuth, IQueryUserAuth, IUserAuthRepositoryAsync, IAuthRepositoryAsync, IClearableAsync, IManageRolesAsync, IManageApiKeysAsync, IQueryUserAuthAsync, IManageSourceRolesAsync where TUserAuth : class, IUserAuth where TUserAuthDetails : class, IUserAuthDetails

Properties

UseDistinctRoleTables

View Source
Declaration
public bool UseDistinctRoleTables { get; set; }

ForceCaseInsensitiveUserNameSearch

View Source
Declaration
public bool ForceCaseInsensitiveUserNameSearch { get; set; }

Fields

hasInitSchema

View Source
Declaration
public bool hasInitSchema

Methods

Exec(Action<IDbConnection>)

View Source
Declaration
public abstract void Exec(Action<IDbConnection> fn)
Parameters
TypeName
Action<IDbConnection>fn

Exec<T>(Func<IDbConnection, T>)

View Source
Declaration
public abstract T Exec<T>(Func<IDbConnection, T> fn)
Returns

<T>

Parameters
TypeName
Func<IDbConnection,<T>>fn
Type Parameters
  • T

InitSchema()

View Source
Declaration
public virtual void InitSchema()

InitSchema(IDbConnection)

View Source
Declaration
public virtual void InitSchema(IDbConnection db)
Parameters
TypeName
IDbConnectiondb

DropSchema()

View Source
Declaration
public virtual void DropSchema()

DropSchema(IDbConnection)

View Source
Declaration
public virtual void DropSchema(IDbConnection db)
Parameters
TypeName
IDbConnectiondb

DropAndReCreateTables()

View Source
Declaration
public virtual void DropAndReCreateTables()

DropAndReCreateTables(IDbConnection)

View Source
Declaration
public virtual void DropAndReCreateTables(IDbConnection db)
Parameters
TypeName
IDbConnectiondb

InitCheck()

View Source
Declaration
public virtual bool InitCheck()
Returns

System.Boolean

CreateUserAuth(IUserAuth, String)

View Source
Declaration
public virtual IUserAuth CreateUserAuth(IUserAuth newUser, string password)
Returns

ServiceStack.Auth.IUserAuth

Parameters
TypeName
ServiceStack.Auth.IUserAuthnewUser
System.Stringpassword

CreateUserAuth(IDbConnection, IUserAuth, String)

View Source
Declaration
public virtual IUserAuth CreateUserAuth(IDbConnection db, IUserAuth newUser, string password)
Returns

ServiceStack.Auth.IUserAuth

Parameters
TypeName
IDbConnectiondb
ServiceStack.Auth.IUserAuthnewUser
System.Stringpassword

AssertNoExistingUser(IDbConnection, IUserAuth, IUserAuth)

View Source
Declaration
protected virtual void AssertNoExistingUser(IDbConnection db, IUserAuth newUser, IUserAuth exceptForExistingUser = null)
Parameters
TypeName
IDbConnectiondb
ServiceStack.Auth.IUserAuthnewUser
ServiceStack.Auth.IUserAuthexceptForExistingUser

UpdateUserAuth(IUserAuth, IUserAuth, String)

View Source
Declaration
public virtual IUserAuth UpdateUserAuth(IUserAuth existingUser, IUserAuth newUser, string password)
Returns

ServiceStack.Auth.IUserAuth

Parameters
TypeName
ServiceStack.Auth.IUserAuthexistingUser
ServiceStack.Auth.IUserAuthnewUser
System.Stringpassword

UpdateUserAuth(IDbConnection, IUserAuth, IUserAuth, String)

View Source
Declaration
public virtual IUserAuth UpdateUserAuth(IDbConnection db, IUserAuth existingUser, IUserAuth newUser, string password)
Returns

ServiceStack.Auth.IUserAuth

Parameters
TypeName
IDbConnectiondb
ServiceStack.Auth.IUserAuthexistingUser
ServiceStack.Auth.IUserAuthnewUser
System.Stringpassword

UpdateUserAuth(IUserAuth, IUserAuth)

View Source
Declaration
public virtual IUserAuth UpdateUserAuth(IUserAuth existingUser, IUserAuth newUser)
Returns

ServiceStack.Auth.IUserAuth

Parameters
TypeName
ServiceStack.Auth.IUserAuthexistingUser
ServiceStack.Auth.IUserAuthnewUser

UpdateUserAuth(IDbConnection, IUserAuth, IUserAuth)

View Source
Declaration
public virtual IUserAuth UpdateUserAuth(IDbConnection db, IUserAuth existingUser, IUserAuth newUser)
Returns

ServiceStack.Auth.IUserAuth

Parameters
TypeName
IDbConnectiondb
ServiceStack.Auth.IUserAuthexistingUser
ServiceStack.Auth.IUserAuthnewUser

GetUserAuthByUserName(String)

View Source
Declaration
public virtual IUserAuth GetUserAuthByUserName(string userNameOrEmail)
Returns

ServiceStack.Auth.IUserAuth

Parameters
TypeName
System.StringuserNameOrEmail

GetUserAuths(String, Nullable<Int32>, Nullable<Int32>)

View Source
Declaration
public List<IUserAuth> GetUserAuths(string orderBy = null, int? skip = null, int? take = null)
Returns

List<ServiceStack.Auth.IUserAuth>

Parameters
TypeName
System.StringorderBy
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

GetUserAuths(IDbConnection, String, Nullable<Int32>, Nullable<Int32>)

View Source
Declaration
public List<IUserAuth> GetUserAuths(IDbConnection db, string orderBy = null, int? skip = null, int? take = null)
Returns

List<ServiceStack.Auth.IUserAuth>

Parameters
TypeName
IDbConnectiondb
System.StringorderBy
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

SearchUserAuths(String, String, Nullable<Int32>, Nullable<Int32>)

View Source
Declaration
public List<IUserAuth> SearchUserAuths(string query, string orderBy = null, int? skip = null, int? take = null)
Returns

List<ServiceStack.Auth.IUserAuth>

Parameters
TypeName
System.Stringquery
System.StringorderBy
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

SearchUserAuths(IDbConnection, String, String, Nullable<Int32>, Nullable<Int32>)

View Source
Declaration
public List<IUserAuth> SearchUserAuths(IDbConnection db, string query, string orderBy = null, int? skip = null, int? take = null)
Returns

List<ServiceStack.Auth.IUserAuth>

Parameters
TypeName
IDbConnectiondb
System.Stringquery
System.StringorderBy
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

TryAuthenticate(String, String, out IUserAuth)

View Source
Declaration
public virtual bool TryAuthenticate(string userName, string password, out IUserAuth userAuth)
Returns

System.Boolean

Parameters
TypeName
System.StringuserName
System.Stringpassword
ServiceStack.Auth.IUserAuthuserAuth

TryAuthenticate(Dictionary<String, String>, String, Int32, String, out IUserAuth)

View Source
Declaration
public virtual bool TryAuthenticate(Dictionary<string, string> digestHeaders, string privateKey, int nonceTimeOut, string sequence, out IUserAuth userAuth)
Returns

System.Boolean

Parameters
TypeName
Dictionary<System.String,System.String>digestHeaders
System.StringprivateKey
System.Int32nonceTimeOut
System.Stringsequence
ServiceStack.Auth.IUserAuthuserAuth

DeleteUserAuth(String)

View Source
Declaration
public virtual void DeleteUserAuth(string userAuthId)
Parameters
TypeName
System.StringuserAuthId

DeleteUserAuth(IDbConnection, String)

View Source
Declaration
public virtual void DeleteUserAuth(IDbConnection db, string userAuthId)
Parameters
TypeName
IDbConnectiondb
System.StringuserAuthId

LoadUserAuth(IAuthSession, IAuthTokens)

View Source
Declaration
public virtual void LoadUserAuth(IAuthSession session, IAuthTokens tokens)
Parameters
TypeName
ServiceStack.Auth.IAuthSessionsession
ServiceStack.Auth.IAuthTokenstokens

GetUserAuth(String)

View Source
Declaration
public virtual IUserAuth GetUserAuth(string userAuthId)
Returns

ServiceStack.Auth.IUserAuth

Parameters
TypeName
System.StringuserAuthId

GetUserAuth(IDbConnection, String)

View Source
Declaration
public virtual IUserAuth GetUserAuth(IDbConnection db, string userAuthId)
Returns

ServiceStack.Auth.IUserAuth

Parameters
TypeName
IDbConnectiondb
System.StringuserAuthId

SaveUserAuth(IAuthSession)

View Source
Declaration
public virtual void SaveUserAuth(IAuthSession authSession)
Parameters
TypeName
ServiceStack.Auth.IAuthSessionauthSession

SaveUserAuth(IDbConnection, IAuthSession)

View Source
Declaration
public virtual void SaveUserAuth(IDbConnection db, IAuthSession authSession)
Parameters
TypeName
IDbConnectiondb
ServiceStack.Auth.IAuthSessionauthSession

SaveUserAuth(IUserAuth)

View Source
Declaration
public virtual void SaveUserAuth(IUserAuth userAuth)
Parameters
TypeName
ServiceStack.Auth.IUserAuthuserAuth

SaveUserAuth(IDbConnection, IUserAuth)

View Source
Declaration
public virtual void SaveUserAuth(IDbConnection db, IUserAuth userAuth)
Parameters
TypeName
IDbConnectiondb
ServiceStack.Auth.IUserAuthuserAuth

GetUserAuthDetails(String)

View Source
Declaration
public virtual List<IUserAuthDetails> GetUserAuthDetails(string userAuthId)
Returns

List<ServiceStack.Auth.IUserAuthDetails>

Parameters
TypeName
System.StringuserAuthId

GetUserAuthDetails(IDbConnection, String)

View Source
Declaration
public virtual List<IUserAuthDetails> GetUserAuthDetails(IDbConnection db, string userAuthId)
Returns

List<ServiceStack.Auth.IUserAuthDetails>

Parameters
TypeName
IDbConnectiondb
System.StringuserAuthId

GetUserAuth(IAuthSession, IAuthTokens)

View Source
Declaration
public virtual IUserAuth GetUserAuth(IAuthSession authSession, IAuthTokens tokens)
Returns

ServiceStack.Auth.IUserAuth

Parameters
TypeName
ServiceStack.Auth.IAuthSessionauthSession
ServiceStack.Auth.IAuthTokenstokens

CreateOrMergeAuthSession(IAuthSession, IAuthTokens)

View Source
Declaration
public virtual IUserAuthDetails CreateOrMergeAuthSession(IAuthSession authSession, IAuthTokens tokens)
Returns

ServiceStack.Auth.IUserAuthDetails

Parameters
TypeName
ServiceStack.Auth.IAuthSessionauthSession
ServiceStack.Auth.IAuthTokenstokens

Clear()

View Source
Declaration
public virtual void Clear()

Clear(IDbConnection)

View Source
Declaration
public virtual void Clear(IDbConnection db)
Parameters
TypeName
IDbConnectiondb

GetRoles(String)

View Source
Declaration
public virtual ICollection<string> GetRoles(string userAuthId)
Returns

ICollection<System.String>

Parameters
TypeName
System.StringuserAuthId

GetRoles(IDbConnection, String)

View Source
Declaration
public virtual ICollection<string> GetRoles(IDbConnection db, string userAuthId)
Returns

ICollection<System.String>

Parameters
TypeName
IDbConnectiondb
System.StringuserAuthId

GetPermissions(String)

View Source
Declaration
public virtual ICollection<string> GetPermissions(string userAuthId)
Returns

ICollection<System.String>

Parameters
TypeName
System.StringuserAuthId

GetPermissions(IDbConnection, String)

View Source
Declaration
public virtual ICollection<string> GetPermissions(IDbConnection db, string userAuthId)
Returns

ICollection<System.String>

Parameters
TypeName
IDbConnectiondb
System.StringuserAuthId

GetRolesAndPermissions(String, out ICollection<String>, out ICollection<String>)

View Source
Declaration
public virtual void GetRolesAndPermissions(string userAuthId, out ICollection<string> roles, out ICollection<string> permissions)
Parameters
TypeName
System.StringuserAuthId
ICollection<System.String>roles
ICollection<System.String>permissions

HasRole(String, String)

View Source
Declaration
public virtual bool HasRole(string userAuthId, string role)
Returns

System.Boolean

Parameters
TypeName
System.StringuserAuthId
System.Stringrole

HasPermission(String, String)

View Source
Declaration
public virtual bool HasPermission(string userAuthId, string permission)
Returns

System.Boolean

Parameters
TypeName
System.StringuserAuthId
System.Stringpermission

AssignRoles(String, ICollection<String>, ICollection<String>)

View Source
Declaration
public virtual void AssignRoles(string userAuthId, ICollection<string> roles = null, ICollection<string> permissions = null)
Parameters
TypeName
System.StringuserAuthId
ICollection<System.String>roles
ICollection<System.String>permissions

AssignRoles(IDbConnection, String, ICollection<String>, ICollection<String>)

View Source
Declaration
public virtual void AssignRoles(IDbConnection db, string userAuthId, ICollection<string> roles = null, ICollection<string> permissions = null)
Parameters
TypeName
IDbConnectiondb
System.StringuserAuthId
ICollection<System.String>roles
ICollection<System.String>permissions

UnAssignRoles(String, ICollection<String>, ICollection<String>)

View Source
Declaration
public virtual void UnAssignRoles(string userAuthId, ICollection<string> roles = null, ICollection<string> permissions = null)
Parameters
TypeName
System.StringuserAuthId
ICollection<System.String>roles
ICollection<System.String>permissions

UnAssignRoles(IDbConnection, String, ICollection<String>, ICollection<String>)

View Source
Declaration
public virtual void UnAssignRoles(IDbConnection db, string userAuthId, ICollection<string> roles = null, ICollection<string> permissions = null)
Parameters
TypeName
IDbConnectiondb
System.StringuserAuthId
ICollection<System.String>roles
ICollection<System.String>permissions

InitApiKeySchema()

View Source
Declaration
public virtual void InitApiKeySchema()

InitApiKeySchema(IDbConnection)

View Source
Declaration
public virtual void InitApiKeySchema(IDbConnection db)
Parameters
TypeName
IDbConnectiondb

DropApiKeySchema()

View Source
Declaration
public virtual void DropApiKeySchema()

DropApiKeySchema(IDbConnection)

View Source
Declaration
public virtual void DropApiKeySchema(IDbConnection db)
Parameters
TypeName
IDbConnectiondb

ApiKeyExists(String)

View Source
Declaration
public bool ApiKeyExists(string apiKey)
Returns

System.Boolean

Parameters
TypeName
System.StringapiKey

GetApiKey(String)

View Source
Declaration
public ApiKey GetApiKey(string apiKey)
Returns

ServiceStack.Auth.ApiKey

Parameters
TypeName
System.StringapiKey

GetUserApiKeys(String)

View Source
Declaration
public List<ApiKey> GetUserApiKeys(string userId)
Returns

List<ServiceStack.Auth.ApiKey>

Parameters
TypeName
System.StringuserId

StoreAll(IEnumerable<ApiKey>)

View Source
Declaration
public void StoreAll(IEnumerable<ApiKey> apiKeys)
Parameters
TypeName
IEnumerable<ServiceStack.Auth.ApiKey>apiKeys

CreateUserAuth()

View Source
Declaration
public IUserAuth CreateUserAuth()
Returns

ServiceStack.Auth.IUserAuth

CreateUserAuthDetails()

View Source
Declaration
public IUserAuthDetails CreateUserAuthDetails()
Returns

ServiceStack.Auth.IUserAuthDetails

ExecAsync(Func<IDbConnection, Task>)

View Source
Declaration
public abstract Task ExecAsync(Func<IDbConnection, Task> fn)
Returns

Task

Parameters
TypeName
Func<IDbConnection,Task>fn

ExecAsync<T>(Func<IDbConnection, Task<T>>)

View Source
Declaration
public abstract Task<T> ExecAsync<T>(Func<IDbConnection, Task<T>> fn)
Returns

Task<<T>>

Parameters
TypeName
Func<IDbConnection,Task<<T>>>fn
Type Parameters
  • T

CreateUserAuthAsync(IUserAuth, String, CancellationToken)

View Source
Declaration
public virtual async Task<IUserAuth> CreateUserAuthAsync(IUserAuth newUser, string password, CancellationToken token = null)
Returns

Task<ServiceStack.Auth.IUserAuth>

Parameters
TypeName
ServiceStack.Auth.IUserAuthnewUser
System.Stringpassword
CancellationTokentoken

AssertNoExistingUserAsync(IDbConnection, IUserAuth, IUserAuth, CancellationToken)

View Source
Declaration
protected virtual async Task AssertNoExistingUserAsync(IDbConnection db, IUserAuth newUser, IUserAuth exceptForExistingUser = null, CancellationToken token = null)
Returns

Task

Parameters
TypeName
IDbConnectiondb
ServiceStack.Auth.IUserAuthnewUser
ServiceStack.Auth.IUserAuthexceptForExistingUser
CancellationTokentoken

UpdateUserAuthAsync(IUserAuth, IUserAuth, String, CancellationToken)

View Source
Declaration
public virtual async Task<IUserAuth> UpdateUserAuthAsync(IUserAuth existingUser, IUserAuth newUser, string password, CancellationToken token = null)
Returns

Task<ServiceStack.Auth.IUserAuth>

Parameters
TypeName
ServiceStack.Auth.IUserAuthexistingUser
ServiceStack.Auth.IUserAuthnewUser
System.Stringpassword
CancellationTokentoken

UpdateUserAuthAsync(IUserAuth, IUserAuth, CancellationToken)

View Source
Declaration
public virtual async Task<IUserAuth> UpdateUserAuthAsync(IUserAuth existingUser, IUserAuth newUser, CancellationToken token = null)
Returns

Task<ServiceStack.Auth.IUserAuth>

Parameters
TypeName
ServiceStack.Auth.IUserAuthexistingUser
ServiceStack.Auth.IUserAuthnewUser
CancellationTokentoken

GetUserAuthByUserNameAsync(String, CancellationToken)

View Source
Declaration
public virtual async Task<IUserAuth> GetUserAuthByUserNameAsync(string userNameOrEmail, CancellationToken token = null)
Returns

Task<ServiceStack.Auth.IUserAuth>

Parameters
TypeName
System.StringuserNameOrEmail
CancellationTokentoken

GetUserAuthsAsync(String, Nullable<Int32>, Nullable<Int32>, CancellationToken)

View Source
Declaration
public async Task<List<IUserAuth>> GetUserAuthsAsync(string orderBy = null, int? skip = null, int? take = null, CancellationToken token = null)
Returns

Task<List<ServiceStack.Auth.IUserAuth>>

Parameters
TypeName
System.StringorderBy
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take
CancellationTokentoken

SearchUserAuthsAsync(String, String, Nullable<Int32>, Nullable<Int32>, CancellationToken)

View Source
Declaration
public async Task<List<IUserAuth>> SearchUserAuthsAsync(string query, string orderBy = null, int? skip = null, int? take = null, CancellationToken token = null)
Returns

Task<List<ServiceStack.Auth.IUserAuth>>

Parameters
TypeName
System.Stringquery
System.StringorderBy
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take
CancellationTokentoken

TryAuthenticateAsync(String, String, CancellationToken)

View Source
Declaration
public virtual async Task<IUserAuth> TryAuthenticateAsync(string userName, string password, CancellationToken token = null)
Returns

Task<ServiceStack.Auth.IUserAuth>

Parameters
TypeName
System.StringuserName
System.Stringpassword
CancellationTokentoken

TryAuthenticateAsync(Dictionary<String, String>, String, Int32, String, CancellationToken)

View Source
Declaration
public virtual async Task<IUserAuth> TryAuthenticateAsync(Dictionary<string, string> digestHeaders, string privateKey, int nonceTimeOut, string sequence, CancellationToken token = null)
Returns

Task<ServiceStack.Auth.IUserAuth>

Parameters
TypeName
Dictionary<System.String,System.String>digestHeaders
System.StringprivateKey
System.Int32nonceTimeOut
System.Stringsequence
CancellationTokentoken

DeleteUserAuthAsync(String, CancellationToken)

View Source
Declaration
public virtual async Task DeleteUserAuthAsync(string userAuthId, CancellationToken token = null)
Returns

Task

Parameters
TypeName
System.StringuserAuthId
CancellationTokentoken

LoadUserAuthAsync(IAuthSession, IAuthTokens, CancellationToken)

View Source
Declaration
public virtual async Task LoadUserAuthAsync(IAuthSession session, IAuthTokens tokens, CancellationToken token = null)
Returns

Task

Parameters
TypeName
ServiceStack.Auth.IAuthSessionsession
ServiceStack.Auth.IAuthTokenstokens
CancellationTokentoken

GetUserAuthAsync(String, CancellationToken)

View Source
Declaration
public virtual async Task<IUserAuth> GetUserAuthAsync(string userAuthId, CancellationToken token = null)
Returns

Task<ServiceStack.Auth.IUserAuth>

Parameters
TypeName
System.StringuserAuthId
CancellationTokentoken

SaveUserAuthAsync(IAuthSession, CancellationToken)

View Source
Declaration
public virtual async Task SaveUserAuthAsync(IAuthSession authSession, CancellationToken token = null)
Returns

Task

Parameters
TypeName
ServiceStack.Auth.IAuthSessionauthSession
CancellationTokentoken

SaveUserAuthAsync(IUserAuth, CancellationToken)

View Source
Declaration
public virtual async Task SaveUserAuthAsync(IUserAuth userAuth, CancellationToken token = null)
Returns

Task

Parameters
TypeName
ServiceStack.Auth.IUserAuthuserAuth
CancellationTokentoken

GetUserAuthDetailsAsync(String, CancellationToken)

View Source
Declaration
public virtual async Task<List<IUserAuthDetails>> GetUserAuthDetailsAsync(string userAuthId, CancellationToken token = null)
Returns

Task<List<ServiceStack.Auth.IUserAuthDetails>>

Parameters
TypeName
System.StringuserAuthId
CancellationTokentoken

GetUserAuthAsync(IAuthSession, IAuthTokens, CancellationToken)

View Source
Declaration
public virtual async Task<IUserAuth> GetUserAuthAsync(IAuthSession authSession, IAuthTokens tokens, CancellationToken token = null)
Returns

Task<ServiceStack.Auth.IUserAuth>

Parameters
TypeName
ServiceStack.Auth.IAuthSessionauthSession
ServiceStack.Auth.IAuthTokenstokens
CancellationTokentoken

CreateOrMergeAuthSessionAsync(IAuthSession, IAuthTokens, CancellationToken)

View Source
Declaration
public virtual async Task<IUserAuthDetails> CreateOrMergeAuthSessionAsync(IAuthSession authSession, IAuthTokens tokens, CancellationToken token = null)
Returns

Task<ServiceStack.Auth.IUserAuthDetails>

Parameters
TypeName
ServiceStack.Auth.IAuthSessionauthSession
ServiceStack.Auth.IAuthTokenstokens
CancellationTokentoken

ClearAsync(CancellationToken)

View Source
Declaration
public virtual async Task ClearAsync(CancellationToken token = null)
Returns

Task

Parameters
TypeName
CancellationTokentoken

GetRolesAsync(String, CancellationToken)

View Source
Declaration
public virtual async Task<ICollection<string>> GetRolesAsync(string userAuthId, CancellationToken token = null)
Returns

Task<ICollection<System.String>>

Parameters
TypeName
System.StringuserAuthId
CancellationTokentoken

GetPermissionsAsync(String, CancellationToken)

View Source
Declaration
public virtual async Task<ICollection<string>> GetPermissionsAsync(string userAuthId, CancellationToken token = null)
Returns

Task<ICollection<System.String>>

Parameters
TypeName
System.StringuserAuthId
CancellationTokentoken

GetLocalRolesAndPermissionsAsync(String, CancellationToken)

View Source
Declaration
public async Task<Tuple<ICollection<string>, ICollection<string>>> GetLocalRolesAndPermissionsAsync(string userAuthId, CancellationToken token = null)
Returns

Task<Tuple<ICollection<System.String>,ICollection<System.String>>>

Parameters
TypeName
System.StringuserAuthId
CancellationTokentoken

GetRolesAndPermissionsAsync(String, CancellationToken)

View Source
Declaration
public virtual async Task<Tuple<ICollection<string>, ICollection<string>>> GetRolesAndPermissionsAsync(string userAuthId, CancellationToken token = null)
Returns

Task<Tuple<ICollection<System.String>,ICollection<System.String>>>

Parameters
TypeName
System.StringuserAuthId
CancellationTokentoken

HasRoleAsync(String, String, CancellationToken)

View Source
Declaration
public virtual async Task<bool> HasRoleAsync(string userAuthId, string role, CancellationToken token = null)
Returns

Task<System.Boolean>

Parameters
TypeName
System.StringuserAuthId
System.Stringrole
CancellationTokentoken

HasPermissionAsync(String, String, CancellationToken)

View Source
Declaration
public virtual async Task<bool> HasPermissionAsync(string userAuthId, string permission, CancellationToken token = null)
Returns

Task<System.Boolean>

Parameters
TypeName
System.StringuserAuthId
System.Stringpermission
CancellationTokentoken

MergeRolesAsync(String, String, ICollection<String>, CancellationToken)

View Source
Declaration
public async Task MergeRolesAsync(string userAuthId, string source, ICollection<string> roles, CancellationToken token = null)
Returns

Task

Parameters
TypeName
System.StringuserAuthId
System.Stringsource
ICollection<System.String>roles
CancellationTokentoken

AssignRolesAsync(String, ICollection<String>, ICollection<String>, CancellationToken)

View Source
Declaration
public virtual async Task AssignRolesAsync(string userAuthId, ICollection<string> roles = null, ICollection<string> permissions = null, CancellationToken token = null)
Returns

Task

Parameters
TypeName
System.StringuserAuthId
ICollection<System.String>roles
ICollection<System.String>permissions
CancellationTokentoken

UnAssignRolesAsync(String, ICollection<String>, ICollection<String>, CancellationToken)

View Source
Declaration
public virtual async Task UnAssignRolesAsync(string userAuthId, ICollection<string> roles = null, ICollection<string> permissions = null, CancellationToken token = null)
Returns

Task

Parameters
TypeName
System.StringuserAuthId
ICollection<System.String>roles
ICollection<System.String>permissions
CancellationTokentoken

ApiKeyExistsAsync(String, CancellationToken)

View Source
Declaration
public async Task<bool> ApiKeyExistsAsync(string apiKey, CancellationToken token = null)
Returns

Task<System.Boolean>

Parameters
TypeName
System.StringapiKey
CancellationTokentoken

GetApiKeyAsync(String, CancellationToken)

View Source
Declaration
public async Task<ApiKey> GetApiKeyAsync(string apiKey, CancellationToken token = null)
Returns

Task<ServiceStack.Auth.ApiKey>

Parameters
TypeName
System.StringapiKey
CancellationTokentoken

GetUserApiKeysAsync(String, CancellationToken)

View Source
Declaration
public async Task<List<ApiKey>> GetUserApiKeysAsync(string userId, CancellationToken token = null)
Returns

Task<List<ServiceStack.Auth.ApiKey>>

Parameters
TypeName
System.StringuserId
CancellationTokentoken

StoreAllAsync(IEnumerable<ApiKey>, CancellationToken)

View Source
Declaration
public async Task StoreAllAsync(IEnumerable<ApiKey> apiKeys, CancellationToken token = null)
Returns

Task

Parameters
TypeName
IEnumerable<ServiceStack.Auth.ApiKey>apiKeys
CancellationTokentoken

Implements